﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

///　使ってない。
///　TODO 消せ
///　
namespace DokiDokiDynamo {
    
    public struct EventArgs  {

        public EventArgs (object arg) : this() {
            Value = arg;
        }
        public object Value { get; private set; }


        public static implicit operator EventArgs (int value) {
            return new EventArgs (value);
        }
        public static implicit operator EventArgs (float value) {
            return new EventArgs (value);
        }
        public static implicit operator EventArgs (string value) {
            return new EventArgs (value);
        }
        public static implicit operator EventArgs (Object value) {
            return new EventArgs (value);
        }

        public static explicit operator int (EventArgs args) {
            return (int)args.Value;
        }
        public static explicit operator float (EventArgs args) {
            return (float)args.Value;
        }
        public static explicit operator string (EventArgs args) {
            return (string)args.Value;
        }
        public static explicit operator Object (EventArgs args) {
            return (Object)args.Value;
        }
    }
}
